	<?php
        
        if (!isset($_GET['tag'])) $_GET['tag'] = 0;
        $nav1 = '';
        foreach (unique_arr($_SESSION['au_menu_list']) as $key => $val){
            if ($val['id'] == $_GET['tag']){
                $nav1 = '<a href="'.U('index/main',array('tag' => $_GET['tag'])).'">'.$val['title'].'</a>';
            }
        }
        
        $nav2 = '';
        foreach ($_SESSION['menu'.$_SESSION['authId']] as $a => $v){
            if (strtolower($v['name']) == strtolower(MODULE_NAME)){
                $nav2 = '<a href="'.U('index',array('tag' => $_GET['tag'])).'">'.$v['title'].'</a>';
            }
        }
        
        $action = '';
        switch(strtolower(ACTION_NAME)){
            case 'index' :
            	if (strtolower(MODULE_NAME) == 'index'){
            		$action = '首页';
            	}else{
            		$action = '列表';
            	}
                break;
            case 'edit' :
                $action = '编辑';
                break;
            case 'add' :
                $action = '添加';
                break;
            default :
            	switch(strtolower(MODULE_NAME)){
            		case 'system' :
            			$action = '修改配置';
            			break;
            		case 'guestbook' :
            			$action = '回复';
            			break;
            		default :
            			$action = '常规列表';
            			break;
            	}
        }
        
    ?>
	<div id="position">
		<div class="left"></div>
		<div class="cat" id="home"><div class="text"><a href="{:U('index/main')}">首页</a></div><div class="dot"></div></div>
		<div class="cat" id="common"><div class="text">{$nav1}</div><div class="dot"></div></div>
		<div class="cat" id="picture" style="background:none;"><div class="text">{$nav2}</div><div class="dot"></div></div>
		<div class="cur_action">{$action}</div>
		<div class="right"></div>
	</div>
